package com.shop.server.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ghy
 * @version 1.0
 * @date 2020-10-30
 */
@Controller
@RequestMapping("/page")
@Slf4j
public class PageController {

    /**
     * 注册页面
     *
     * @return
     */
    @GetMapping("/user/register")
    public String regPage() {
        log.info("UserController register");
        return "register.html";
    }

    /**
     * 登录页面
     * @return
     */
    @GetMapping("/user/login")
    public String loginPage() {
        log.info("UserController login");
        return "login";
    }

}
